package com.shuimin.as;

import com.shuimin.as.service.sys.UserService;
import pond.web.restful.API;
import pond.web.restful.ResultDef;

/**
 * Created by ed on 1/17/16.
 */
public class BRIEF extends API {

  {
    get("/users", API.def(
            ResultDef.json("User Brief"),
            (ctx, suc) -> {
              ctx.result(suc, App.DB.get(UserService::brief));
            }
    ));
  }


}
